//
//  JProgressHUD+HF.h
//  jhf
//
//  Created by 计海峰 on 2017/11/23 14:05:37.
//  Copyright © 2017年 计海峰. All rights reserved.
//


#import "JProgressHUD.h"
@interface JProgressHUD (HF) 

/**
 当前显示的hud
 
 @return JProgressHUD
 */
+ (JProgressHUD *)currentHud;

+ (void)showSuccess:(NSString *)success;
+ (void)showSuccess:(NSString *)success toView:(UIView *)view;

+ (void)showError:(NSString *)error;
+ (void)showError:(NSString *)error toView:(UIView *)view;

+ (void)showInfo:(NSString *)info;
+ (void)showInfo:(NSString *)info toView:(UIView *)view;

+ (void)showMessage:(NSString *)message;
+ (void)showMessage:(NSString *)message toView:(UIView *)view;

+ (void)hideHUD;
+ (void)hideHUDForView:(UIView *)view;

/**
 显示进度条
 
 @param progress 进度的数值（0-1）
 @param info 提示信息
 */
+ (void)showProgress:(CGFloat)progress andInfo:(NSString *)info;

@end
